﻿#pragma strict

var message : GameObject;
var positionX : float;
var positionY : float;

function OnCollisionEnter (theCollision : Collision){
		StopGame();
}

function StopGame(){
	Time.timeScale = 0;
	var positionMsg : Vector2 = Vector2(positionX, positionY); 
	Instantiate(message, positionMsg, transform.rotation);
}